window.onload = function() {

	var oForm = document.getElementById('form');

	var oInput = oForm.text1;

	// alert(oInput.value);

	oInput.onchange = doChange;

	function doChange() {
		this.style.background = 'red';
	}
};
